﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BO;

namespace BLL
{
    public partial class Accounts
    {
        public static long? GetLastPostID(int accountID)
        {
            return DAL.Accounts.GetLastPostID(accountID);
        }

        public static Post GetLastPost(int accountID)
        {
            var post = DAL.Accounts.GetLastPost(accountID);
            if (post == null)
                return null;

            return new Post(post);
        }
    }
}
